package cn.tedu.management.portal.util;

import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

public class PasswordUtils {

    private static BCryptPasswordEncoder bCryptPasswordEncoder = new BCryptPasswordEncoder();

    public static String encode(String password){
        return "{bcrypt}"+bCryptPasswordEncoder.encode(password);
    }


}
